package cn.darkhorse.messystem.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 数据源对应表
 * </p>
 *
 * @author maoguanjun
 * @since 2024-04-15
 */
@Getter
@Setter
  @TableName("saas_datasource_info")
@ApiModel(value = "SaasDatasourceInfo对象", description = "数据源对应表")
public class SaasDatasourceInfo implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("主键")
        @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("数据源名称")
      private String name;

      @ApiModelProperty("数据库类型 0:mysql 1:sqlserver")
      private Integer type;

      @ApiModelProperty("驱动名称")
      private String driverClassName;

      @ApiModelProperty("数据库url")
      private String url;

      @ApiModelProperty("用户名")
      private String userName;

      @ApiModelProperty("密码")
      private String password;

      @ApiModelProperty("公司id")
      private Long company;

      @ApiModelProperty("部门")
      private Long dept;

      @ApiModelProperty("创建时间")
      private LocalDateTime creteTime;

      @ApiModelProperty("创建人")
      private Long creator;

      @ApiModelProperty("修改人")
      private Long modifier;

      @ApiModelProperty("删除标志 （0：正常1：删除）")
      private Integer delFlag;

      @ApiModelProperty("修改时间")
      private LocalDateTime modifyTime;


}
